package com.web.ShoppingDemo.service;

import java.util.List;

import com.web.ShoppingDemo.model.Forder;
import com.web.ShoppingDemo.model.Product;
import com.web.ShoppingDemo.model.Sorder;

public interface SorderService extends BaseService<Sorder> {
	//将Product转换为Sorder
	Sorder productToSorder(Product product);
	//将订单项添加到订单
	Forder addSorder(Forder forder,Product product);
	//订单中删除订单项
	Forder deleteSorder(Forder forder,Integer id);
	//根据商品的id根性商品的数量
	Forder updateSorder(Sorder sorder,Forder forder);
	//查询热点商品的销售量
	List<Object> querySale(int number);
}
